// 模块配置表
const { Sequelize, sequelize } = require('../dao/db');

const ModulesDom = sequelize.define('ModulesDom', {
    id: {
        type: Sequelize.BIGINT(11),
        autoIncrement: true,
        primaryKey: true,
        unique: true,
        comment: '主键'
    },
    moduleId: {
        type: Sequelize.STRING,
    },
    width: {
        type: Sequelize.INTEGER(11),
    },
    height: {
        type: Sequelize.INTEGER(11),
    },
    left: {
        type: Sequelize.INTEGER(11),
    },
    top: {
        type: Sequelize.INTEGER(11),
    },
    scale: {
        type: Sequelize.INTEGER(11),
    },
    Z_index: {
        type: Sequelize.INTEGER(11),
    }
})

// User.sync({ force: true })
ModulesDom.sync().then(() => {
    console.log('ModulesDom表模型已经同步 ');
});
module.exports = ModulesDom